package com.ruoyi.bcsettings.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bcsettings.mapper.EsLogisticsCompanyMapper;
import com.ruoyi.bcsettings.domain.EsLogisticsCompany;
import com.ruoyi.bcsettings.service.IEsLogisticsCompanyService;

/**
 * 物流公司Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-14
 */
@Service
public class EsLogisticsCompanyServiceImpl implements IEsLogisticsCompanyService 
{
    @Autowired
    private EsLogisticsCompanyMapper esLogisticsCompanyMapper;

    /**
     * 查询物流公司
     * 
     * @param id 物流公司主键
     * @return 物流公司
     */
    @Override
    public EsLogisticsCompany selectEsLogisticsCompanyById(Integer id)
    {
        return esLogisticsCompanyMapper.selectEsLogisticsCompanyById(id);
    }

    /**
     * 查询物流公司列表
     * 
     * @param esLogisticsCompany 物流公司
     * @return 物流公司
     */
    @Override
    public List<EsLogisticsCompany> selectEsLogisticsCompanyList(EsLogisticsCompany esLogisticsCompany)
    {
        return esLogisticsCompanyMapper.selectEsLogisticsCompanyList(esLogisticsCompany);
    }

    /**
     * 新增物流公司
     * 
     * @param esLogisticsCompany 物流公司
     * @return 结果
     */
    @Override
    public int insertEsLogisticsCompany(EsLogisticsCompany esLogisticsCompany)
    {
        return esLogisticsCompanyMapper.insertEsLogisticsCompany(esLogisticsCompany);
    }

    /**
     * 修改物流公司
     * 
     * @param esLogisticsCompany 物流公司
     * @return 结果
     */
    @Override
    public int updateEsLogisticsCompany(EsLogisticsCompany esLogisticsCompany)
    {
        return esLogisticsCompanyMapper.updateEsLogisticsCompany(esLogisticsCompany);
    }

    /**
     * 批量删除物流公司
     * 
     * @param ids 需要删除的物流公司主键
     * @return 结果
     */
    @Override
    public int deleteEsLogisticsCompanyByIds(Integer[] ids)
    {
        return esLogisticsCompanyMapper.deleteEsLogisticsCompanyByIds(ids);
    }

    /**
     * 删除物流公司信息
     * 
     * @param id 物流公司主键
     * @return 结果
     */
    @Override
    public int deleteEsLogisticsCompanyById(Integer id)
    {
        return esLogisticsCompanyMapper.deleteEsLogisticsCompanyById(id);
    }
}
